<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>角色操作</title>
    <meta name="author" content="yeshop Team" />
    <meta name="copyright" content="yeshop" />
    <link rel="icon" href="">
    <link href="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/nprogress/nprogress.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/fonts/font-awesome/font-awesome.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/icheck/icheck.min.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/animate/animate.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.css?v=1.1" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/common/common_20170925.css" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/inside/inside.css?v=1" rel="stylesheet">
    <link href="https://static.9hive.cn/global/vendor/file/file.css" rel="stylesheet">
    <%
    var isAdd = false;
    var isEdit = false;
    if(isEmpty(role.id)){
    isAdd = true;
    }else{
    isEdit = true;
    }%>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content ibox float-e-margins">
    <div class="ibox-title">
        <div class="pull-left mbx">
            品牌账号<span class="line">/</span>
            <a href="/shop/role/list" class="mbxsecond">角色管理</a><span class="line">/</span>
            <span class="current"><%if(isAdd){%>添加角色<%}else{%>编辑角色<%}%></span>
        </div>
    </div>
    <div class="ibox-content">
        <form id="" action="<%if(isAdd){%>${base}/shop/role/save<%}else{%>${base}/shop/role/update<%}%>" method="post" class="form-horizontal form-validate">
            <input type="hidden" name="role.id" value="${role.id!}" />
            <div class="form-group">
                <label class="col-sm-2 control-label">E-角色名称: </label>
                <div class="col-sm-3">
                    <input type="text" name="role.name" value="${role.name!}" class="form-control input-sm" required="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">角色描述: </label>
                <div class="col-sm-3">
                    <textarea name="role.memo" type="text" rows="6" class="form-control input-sm">${role.memo!}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <input type="submit" class="btn btn-primary" value="提交保存" />
                    <button class="btn btn-white" onclick="history.back()" type="button">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="https://static.9hive.cn/global/vendor/jquery/jquery-2.1.4.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/nprogress/nprogress.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-validate/jquery.validate.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-validate/additional-methods.min.js"></script>

<script src="https://static.9hive.cn/global/vendor/jquery-validate/localization/messages_zh.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-ajaxform/ajax-form.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<!-- 自定义js -->
<script src="https://static.9hive.cn/global/vendor/inside/inside20170925.js"></script>

</body>
</html>